Replication materials for all tables and figures in the PSRM research note: Congressional support for democratic norms on January 6th by Alison Craig and Bethany Albertson

Compute Environment:
macOS Sonoma 14.3
Code written for R version 4.3.3 (2024-02-29) -- "Angel Food Cake"Packages: tidyverse v2.0.0, ggrepel v0.9.5, ggthemes v5.1.0, MASS v7.3-60.0.1, mlogit v1.1-1

Files included:

1/Codebook: codebook.pdf

This document includes variable names, descriptions, coding, and sources for all data used in the article.


2/Data: tweets_cleaned.csv

This CSV file provides tweet-level data for 1,861 tweets posted by members of Congress between 1 and 9 p.m. on January 6, 2021. (Twitter data was obtained through the Twitter API in 2022.) This is the primary dataset and is needed to replicate Figures 3, 4, and 6, along with the underlying models.


3/Data: original_memdata.csv

This CSV file provides member-level data for 537 House and Senate members in office on January 6, 2021. This data is needed to replicate Figures 2 and 5 and the underlying model.


4/Data: fig1data.csv

This CSV file provides the dictionary terms grouped by commonalities and their frequency of usage to replicate Figure 1.


5/Data: safig1data.csv

This CSV file includes all tokens that appear at least three times in the tweets and their frequency of usage to replicate Figure S1 in the supplemental appendix.


6/Data: dict_words.csv

This is the list of all tokens that appear in either dictionary to recreate Tables S1 and S2 in the supplemental appendix.


7/Data: fig4b.xlsx

This Excel file contains Figure 4b, showing frame usage over time by party, and the underlying data.


8/Data: nextelection.csv

This CSV file contains the 2022 election outcomes for all members in the dataset. It is needed to replicate Table S7 in the supplemental appendix.


9/Data: repvotes.csv

This CSV file contains House Republican votes on four pro-Trump votes in 2021, obtained from Bartels, L.M., and Carnes, N. (2023) "House Republicans were rewarded for supporting Donald Trump's 'stop the steal' efforts." Proceedings of the National Academy of Sciences. It is needed to replicate table S8 in the supplemental appendix.


10/Code: jan6_repcode.R

This script contains the R code required to reproduce all tables and figures in the paper.

